from rest_framework import serializers

from .models import xinwen


class XinwenSerializer(serializers.ModelSerializer):
    class Meta:
        model = xinwen
        fields = ['title', 'author', 'content', 'add_time']
